#include "screencapture.h"
#include "screencaptureview.h"

ScreenCapture::ScreenCapture(yc::ExtensionManager* ext_mgr, QWidget* container)
    : yc::Extension { ext_mgr, container }
{
    view_ = new ScreenCaptureView(this, container);
}

yc::ExtensionView* ScreenCapture::view()
{
    return view_;
}

bool ScreenCapture::isRecording() const
{
    return view_ ? view_->isRecording() : false;
}
